package com.fwj.demo;

/**
 * @author stone.feng
 * @since 2019-03-15
 */
public class Test2 {

    public static void main(String[] args) {
        String str1 = "hello,word";
        String str2 = "hello,word";
        String str3 = "hello";
        String str4 = new String(str3 + ",word");
        String str5 = new String("hello,word");
        String str6 = new String("hello,word");
        System.out.println(str6 == str5);

        int a = 129;
        int b = 129;
        System.out.println(a == b);

    }
}
